package com.da.javatest.leetCode2;

import java.util.Calendar;
import java.util.Date;


public class testTime {
    public static void main(String[] args) {
        Calendar instance = Calendar.getInstance();
        instance.set(2019, 0, 23, 0, 0, 0);
        System.out.println(instance.getTimeInMillis());
        long timeInMillis = instance.getTimeInMillis();
        timeInMillis = timeInMillis / 1000 * 1000;
        Date date = new Date(timeInMillis);
        System.out.println(date.getTime());
//        Date time = instance.getTime();
//        System.out.println(time);
//        System.out.println(time.getTime());
    }
}
